﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div class="layui-col-md12">
      <div class="layui-card">
        <div class="layui-card-header">查询结果</div>
        <div class="layui-card-body" style="height: 440px;;overflow: auto;">
        	<div th:if="${operateType}=='2'">
        		<table class="layui-table layui-form">
					<thead>
						<th style="text-align: center;">文书类型</th>
						<th style="text-align: center;">文书号</th>
						<th style="text-align: center;">当事人</th>
						<th style="text-align: center;">承办人</th>
						<th style="text-align: center;">操作</th>
					</thead>
					<tbody th:if="${#lists.isEmpty(overviewList)}">
			          <tr>
			          	<td colspan="5" style="font-size:18px;background-color: #fff;font-weight: bold;color:#0d67b0;text-align: center;">暂无记录</td>
			          </tr>
					</tbody>
					<tbody th:if="${not #lists.isEmpty(overviewList)}">
						<tr th:each="overview: ${overviewList}">
							<td th:text="${overview.nextBpTypeName}"></td>
				            <td th:text="${overview.writName}"></td>
				            <td th:text="${overview.operatePointName}"></td>
				            <td th:text="${overview.undertaker}"></td>
				            <td align="center">
				              <button class="layui-btn layui-btn-primary layui-btn-xs" onclick="viewUserInfo(this);">详情</button>
				              <button class="layui-btn layui-btn-primary layui-btn-xs"  >流程图</button>
				              <button class="layui-btn layui-btn-primary layui-btn-xs"  >审核日志</button>
				            </td>
				          </tr>
					</tbody>
				</table>
				<div id="pageTag" th:include="pageTag.html"></div>
        	</div>
        	<div th:if="${operateType=='3'||operateType=='4'}">
        		<table class="layui-table layui-form">
					<thead>
						<th style="text-align: center;">立案号</th>
						<th style="text-align: center;">当事人</th>
						<th style="text-align: center;">承办人</th>
						<th style="text-align: center;">操作</th>
					</thead>
					<tbody th:if="${#lists.isEmpty(overviewList)}">
			          <tr>
			          	<td colspan="5" style="font-size:18px;background-color: #fff;font-weight: bold;color:#0d67b0;text-align: center;">暂无记录</td>
			          </tr>
					</tbody>
					<tbody th:if="${not #lists.isEmpty(overviewList)}">
						<tr th:each="overview: ${overviewList}">
				            <td th:text="${overview.writName}"></td>
				            <td th:text="${overview.operatePointName}"></td>
				            <td th:text="${overview.undertaker}"></td>
				            <td align="center">
				              <button class="layui-btn layui-btn-primary layui-btn-xs"  >流程图</button>
				            </td>
				          </tr>
					</tbody>
				</table>
				<div id="pageTag" th:include="pageTag.html"></div>
        	</div>
        	<div th:if="${operateType=='6'||operateType=='7'}">
        		<table class="layui-table layui-form">
					<thead>
						<th>案件属性</th>
				        <th>立案号</th>
				        <th>当事人</th>
				        <th>承办人</th>
				        <th>位置</th>
				        <th>操作</th>
					</thead>
					<tbody th:if="${#lists.isEmpty(overviewList)}">
			          <tr>
			          	<td colspan="5" style="font-size:18px;background-color: #fff;font-weight: bold;color:#0d67b0;text-align: center;">暂无记录</td>
			          </tr>
					</tbody>
					<tbody th:if="${not #lists.isEmpty(overviewList)}">
						<tr th:each="overview: ${overviewList}">
				            <td>
				            	<span th:if="${overview.porType}=='2'">事故处罚</span>
		            			<span th:unless="${overview.porType}=='2'">事前处罚</span>
				            </td>
				            <td th:text="${overview.writName}"></td>
				            <td th:text="${overview.operatePointName}"></td>
				            <td th:text="${overview.undertaker}"></td>
				            <td th:text="${overview.nextBpTypeName}"></td>
				            <td align="center">
				              <button class="layui-btn layui-btn-primary layui-btn-xs"  >流程图</button>
				            </td>
				          </tr>
					</tbody>
				</table>
				<div id="pageTag" th:include="pageTag.html"></div>
        	</div>
        	<div th:unless="${operateType=='6'||operateType=='7'}">
        		<div th:if="${isQueryDepartmentOtherReportUserRecord=='1'}">
        			<table class="layui-table layui-form">
						<thead>
							<tr>
								<th style="text-align: center;">阶段名称</th>
								<th style="text-align: center;">立案文书号</th>
								<th style="text-align: center;">当事人</th>
								<th style="text-align: center;">承办人</th>
								<th style="text-align: center;">结案剩余时间</th>
								<th style="text-align: center;">当前环节</th>
								<th style="text-align: center;">操作</th>
						</thead>
						<tbody>
							<tr th:each="overview: ${overviewList}">
					            <td th:text="${overview.phaseName}"></td>
					            <td th:text="${overview.writName}"></td>
					            <td th:text="${overview.operatePointName}"></td>
					            <td th:text="${overview.undertaker}"></td>
								<td align="center">
									<div th:if="${overview.finalDates}==null">&nbsp;</div>
									<div th:unless="${overview.finalDates}==null">
										<span th:if="${overview.finalDates}<0">
											超期<span style="color:red" th:text="'-'+${overview.finalDates}"></span>天
										</span>
										<span th:unless="${overview.finalDates}<0">
											<span th:text="${overview.finalDates}"></span>
										</span>
										天
									</div>
								</td>
								<td th:text="${overview.nextBpTypeName}"></td>
					            <td align="center">
					              <button class="layui-btn layui-btn-primary layui-btn-xs"  >流程图</button>
					            </td>
					         </tr>
						</tbody>
					</table>
		     		<div id="pageTag" th:include="pageTag.html"></div>
        		</div>
        		<div th:unless="${isQueryDepartmentOtherReportUserRecord=='1'}">
        			<table class="layui-table layui-form">
						<thead>
							<tr>
								<th style="text-align: center;">案件属性</th>
								<th style="text-align: center;">阶段名称</th>
								<th style="text-align: center;">立案号</th>
								<th style="text-align: center;">当事人</th>
								<th style="text-align: center;">承办人</th>
								<th style="text-align: center;">结案剩余时间</th>
								<th style="text-align: center;">当前环节</th>
								<th style="text-align: center;">操作</th>
						</thead>
						<tbody>
							<tr th:each="overview: ${overviewList}">
				            <td>
				            	<span th:if="${overview.porType}=='2'">事故处罚</span>
				            	<span th:unless="${overview.porType}=='2'">事前处罚</span>
				            </td>
				            <td th:text="${overview.phaseName}"></td>
				            <td th:text="${overview.writName}"></td>
				            <td th:text="${overview.operatePointName}"></td>
				            <td th:text="${overview.undertaker}"></td>
							<td align="center">
								<div th:if="${overview.finalDates}==null">&nbsp;</div>
								<div th:unless="${overview.finalDates}==null">
									<span th:if="${overview.finalDates}<0">
										超期<span style="color:red" th:text="'-'+${overview.finalDates}"></span>天
									</span>
									<span th:unless="${overview.finalDates}<0">
										<span th:text="${overview.finalDates}"></span>
									</span>
									天
								</div>
							</td>
							<td th:text="${overview.nextBpTypeName}"></td>
				            <td align="center">
				              <button th:if="${overview.isEnableViewButton}=='1'" class="layui-btn layui-btn-primary layui-btn-xs layui-disabled">详情</button>
				              <button th:unless="${overview.isEnableViewButton}=='1'" class="layui-btn layui-btn-xs" >详情</button>
				              <button th:if="${overview.isEnableUpdateButton}=='1'" class="layui-btn layui-btn-primary layui-btn-xs layui-disabled" >修改</button>
				              <button th:unless="${overview.isEnableUpdateButton}=='1'" class="layui-btn layui-btn-xs layui-disabled" >修改</button>
				              <button th:if="${overview.isEnableDeletedButton}=='1'" class="layui-btn layui-btn-primary layui-btn-xs layui-disabled" >作废</button>
				              <button th:unless="${overview.isEnableDeletedButton}=='1'" class="layui-btn layui-btn-xs" >作废</button>
				              <button th:if="${overview.isEnablePrintButton}=='1'" class="layui-btn layui-btn-primary layui-btn-xs layui-disabled" >打印预览</button>
				              <button th:unless="${overview.isEnablePrintButton}=='1'" class="layui-btn layui-btn-xs" >打印预览</button>
				              <button th:if="${overview.porType=='1' && overview.bpTypeId=='0'}" class="layui-btn layui-btn-xs" >流程图</button>
				              <button th:if="${overview.porType=='2' && overview.bpTypeId=='0'}" class="layui-btn layui-btn-xs" >流程图</button>
				              <button th:unless="${overview.porType=='1' && overview.bpTypeId=='0' && overview.porType=='2'}" class="layui-btn layui-btn-xs" >流程图</button>
				              <button th:if="${overview.isEnableInvestigateButton}=='1'" class="layui-btn layui-btn-primary layui-btn-xs layui-disabled" >调查取证</button>
				              <button th:unless="${overview.isEnableInvestigateButton}=='1'" class="layui-btn layui-btn-xs" >调查取证</button>
				              <button th:if="${overview.isEnableDelayButton}=='1'" class="layui-btn layui-btn-primary layui-btn-xs layui-disabled" >延期申请</button>
				              <button th:unless="${overview.isEnableDelayButton}=='1'" class="layui-btn layui-btn-xs" >延期申请</button>
				              <button th:if="${overview.isEnableNextButton}=='1'" class="layui-btn layui-btn-primary layui-btn-xs layui-disabled" >下一步环节</button>
				              <button th:value="${overview.bpTypeId+','+overview.nextConditionId1+','+overview.nextConditionId2+','+overview.nextConditionId3+','+overview.nextConditionId4+','+overview.nextConditionId5}" th:unless="${overview.isEnableNextButton}=='1'" class="layui-btn layui-btn-xs" onclick="nextObject(this);">下一步环节</button>
				            </td>
				        </tr>
				     </tbody>
				    </table>
		     		<div id="pageTag" th:include="pageTag.html"></div>
        		</div>
      		</div>
    	</div>
	</div>
</html>       